
"syntax enable
"设置主题
set background=dark
colorscheme molokai "gruvbox solarized

" {{{ Vim自定义折叠配置
augroup vimscript_folding
    au!
    au FileType vim setlocal foldmethod=marker
augroup END
" }}}


"  delimitMate 成对生成(),{},[] 
"使用自定义设置，不使用插件
"自动补全
":inoremap ( ()<ESC>i
":inoremap [ []<ESC>i
":inoremap { {}<ESC>i
":inoremap " ""<ESC>i
"":inoremap ' ''<ESC>i

"{{{ indentline插件 缩进标识配置
" let g:indentLine_bgcolor_term = 202
" let g:indentLine_bgcolor_gui = '#FF5F00'
" let g:indentLine_color_gui = '#A4E57E'
let g:indentLine_char = '¦'
" let g:indentLine_concealcursor = 'inc'
" let g:indentLine_conceallevel = 1 
"disabled
let g:indentLine_enabled = 1
"}}} 


let g:vimrc_author='Felix'
let g:vimrc_email=''
let g:vimrc_homepage=''


""侧边栏 NERDTree
map <F4> :NERDTreeToggle<CR>
let NERDTreeShowHidden=1
let g:NERDTreeShowIgnoredStatus = 1
let g:nerdtree_tabs_open_on_console_startup=1
let g:NERDTreeIndicatorMapCustom = {
    \ "Modified"  : "✹",
    \ "Staged"    : "✚",
    \ "Untracked" : "✭",
    \ "Renamed"   : "➜",
    \ "Unmerged"  : "═",
    \ "Deleted"   : "✖",
    \ "Dirty"     : "✗",
    \ "Clean"     : "✔︎",
    \ 'Ignored'   : '☒',
    \ "Unknown"   : "?"
    \ }



" CtrlP插件
let g:ctrlp_map = '<c-p>'     
let g:ctrlp_cmd = 'CtrlP'



" 注释插件 nerdcommenter
" 注释的时候自动加个空格, 强迫症必配
let g:NERDSpaceDelims=1
"<leader>cc   加注释
"<leader>cu   解开注释
"<leader>c<space>  加上/解开注释, 智能判断
"<leader>cy   先复制, 再注解(p可以进行黏贴)


" 其他自动完成
" autocmd FileType Python set omnifunc=pythoncomplete#Complete
" autocmd FileType JavaScript set omnifunc=javascriptcomplete#CompleteJS
" autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
" autocmd FileType css set omnifunc=csscomplete#CompleteCSS
" autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags
" autocmd FileType PHP set omnifunc=phpcomplete#CompletePHP
" autocmd FileType c set omnifunc=ccomplete#Complete


" 让配置变更立即生效
" autocmd BufWritePost $MYVIMRC source $MYVIMRC
